<?php
require_once 'Zend/Db/Table/Abstract.php';
class Model_OrderDetailMapper extends Zend_Db_Table_Abstract
{
	protected $_name='orderdetail';
	protected $_primary='OrderDetailID';

	
	
	
	

	
	public function createOrderDetail(Model_OrderDetail $orderdetail)
	{
		
			$data = array('OrdID' => $orderdetail->getOrderId(),
				'Dish_LocID' => $orderdetail->getDishLocationId(),	
				'Quantity' => $orderdetail->getQuantity(),				
				'Vat' => $orderdetail->getVat(),
				'Discount'=>$orderdetail->getDiscount(),
				'Subtotal'=>$orderdetail->getSubtotal()
		);
			$this->insert($data);
			return "da tao";
		
	}
	
	
}